#include "buyer.h"

buyer::buyer()
{
    torf = false;     //初始化状态为未买票

}
void buyer::getinformation(QString n, QString i, QString s, QString e, int p)
{
    name = n;
    identfy = i;
    start = s;
    end = e;
    prise = p;
    torf = true;
}


QString buyer::getname()
{
    return name;
}

QString buyer::getidentify()
{
    return identfy;
}

QString buyer::getstart()
{
    return start;
}

QString buyer::getend()
{
    return end;

}

int buyer::getprise()
{
    return prise;
}

bool buyer::gettorf()
{
    return torf;
}
void buyer::setfalse()
{
    torf = false;
}
void buyer::settrue()
{
    torf = true;
}

void buyer::delete_information()  // 退票时撤销信息
{
    name = "0";
    identfy = "0";
}
